We rely on CSD here on the Wayland platform and giving the opportunity
to turn it off doesn't make too much sense.
return TRUE;
#endif
- csd_env = g_getenv ("GTK_CSD");
-
#ifdef GDK_WINDOWING_WAYLAND
- if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))) &&
- g_strcmp0 (csd_env, "0") != 0)
+ if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
return TRUE;
#endif
+ csd_env = g_getenv ("GTK_CSD");
+
return (g_strcmp0 (csd_env, "1") == 0);
}